Skip to content

fix(computer use): repair a TCC grant that outlived the signature it was given to - #7

Merged
sheehanmunim merged 1 commit into
mainfrom
fix/computer-use-stale-tcc
Aug 19, 2026
Merged

fix(computer use): repair a TCC grant that outlived the signature it was given to#7
sheehanmunim merged 1 commit into
mainfrom
fix/computer-use-stale-tcc

Conversation

@sheehanmunim

Copy link
Copy Markdown
Member

What changed

  • t3-desktop-mcp request-permissions asks macOS for Accessibility and Screen Recording from inside the app bundle, so TCC records the grant against the app rather than whatever spawned the binary.
  • Opening the Computer Use privacy pane now clears a stale TCC row first (tccutil reset <service> <bundle id>) when the permission reads as denied, then prompts. The prompt re-creates the row against the signature running now.

Why

Computer Use was refused on this Mac even though System Settings showed MT Code enabled. tccd said exactly why:

Failed to match existing code requirement for subject com.munim.mtcode and service kTCCServiceAccessibility

The row was granted to an earlier signature. macOS keeps showing the checkbox as on, the app keeps being refused, and toggling the checkbox changes nothing — the row has to be cleared and re-created. Every re-signed rebuild can land here, so the repair belongs in the app.

Checks

  • vp run --filter @t3tools/desktop typecheck clean, computer-use suite green
  • Swift binary builds; request-permissions prompts and reports both statuses as JSON

…was given to

`tccd` refused every Accessibility call with "Failed to match existing code
requirement for subject com.munim.mtcode" while System Settings still showed
the app enabled - the row was granted to an earlier signature, and toggling
the checkbox changes nothing.

The privacy pane now clears a stale row before prompting, and the desktop MCP
gains a `request-permissions` mode that asks from inside the app bundle so the
grant lands on the app.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@sheehanmunim
sheehanmunim merged commit 14df107 into main Aug 19, 2026
3 of 7 checks passed
@sheehanmunim
sheehanmunim deleted the fix/computer-use-stale-tcc branch August 19, 2026 08:21
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M labels Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant